﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SpeechLib;

namespace YourPersonalTrainer.BusinessLayer
{
    public class Vocaliser
    {
        SpVoice m_SpVoice;
        public Vocaliser()
        {
            m_SpVoice = new SpVoice();
            m_SpVoice.Rate = -2;
        }

        public void Say(string text)
        {
            m_SpVoice.Speak(text, SpeechVoiceSpeakFlags.SVSFDefault);
        }
    }
}
